//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the ToolkitsPro Library
// Copyright (C) 1998-2022 ToolkitsPro
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions
// of the accompanying license agreement.
//*******************************************************************************
//

#ifndef __TKSPROINC_H
#define __TKSPROINC_H

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#ifndef __AFXTEMPL_H__
#include <afxtempl.h>
#endif

#ifndef __AFXOLE_H__
#include <afxole.h>
#endif

#include "ToolkitsPro.h"		// Library global definitions.
#include "ToolkitsProVer.h"	// Library version info.

#ifdef _TKSPRO_IN_OTHER_DLL
TKSPRODLLEXPORT void TKSProDllInitialize();
#endif // _TKSPRO_IN_OTHER_DLL

#define _TKSP_VERSION_(TKSP_MAJOR, TKSP_MINOR) "TKSPRO" #TKSP_MAJOR "" #TKSP_MINOR
#define _TKSP_VERSION1_(TKSP_MAJOR, TKSP_MINOR) _TKSP_VERSION_(TKSP_MAJOR, TKSP_MINOR)
#define _TKSP_LIBNAME1_ _TKSP_VERSION1_(_TKSPRO_VERSION_MAJOR, _TKSPRO_VERSION_MINOR)

#if defined _AFXDLL && !defined _TKSPRO_STATIC_
#define _TKSP_LIBNAME2_	_TKSP_LIBNAME1_
#else
#define _TKSP_LIBNAME2_	_TKSP_LIBNAME1_##"Static"
#endif

#ifdef _UNICODE
#define _TKSP_LIBNAME3_	_TKSP_LIBNAME2_##"U"
#else
#define _TKSP_LIBNAME3_	_TKSP_LIBNAME2_
#endif

#ifdef _DEBUG
#define _TKSP_LIBNAME4_	_TKSP_LIBNAME3_##"D"
#else
#define _TKSP_LIBNAME4_	_TKSP_LIBNAME3_
#endif

#if defined _AFXDLL && !defined _TKSPRO_STATIC_
#define _TKSP_LIBNAME5_	_TKSP_LIBNAME4_
#elif defined _TKSPRO_STATIC_
#define _TKSP_LIBNAME5_	_TKSP_LIBNAME4_##"s"
#else
#define _TKSP_LIBNAME5_	_TKSP_LIBNAME4_
#endif

#if _MSC_VER < 1300
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##".lib"
#elif _MSC_VER == 1300
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"70.lib"
#elif _MSC_VER < 1400
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"71.lib"
#elif _MSC_VER < 1500
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"80.lib"
#elif _MSC_VER == 1500
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"90.lib"
#elif _MSC_VER == 1600
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"100.lib"
#elif _MSC_VER == 1700
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"110.lib"
#elif _MSC_VER == 1800
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"120.lib"
#elif _MSC_VER == 1900
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"140.lib"
#elif _MSC_VER < 1920
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"141.lib"
#elif _MSC_VER < 1930
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"142.lib"
#elif _MSC_VER < 1940
#define _TKSP_LIBNAME_	_TKSP_LIBNAME5_##"143.lib"
#else
#error "Unsupported VC++ version"
#endif

#ifndef _TKSP_DISABLE_AUTOLINK_
#pragma comment(lib, _TKSP_LIBNAME_)

#ifndef _TKSP_HIDE_AUTOLINK_OUTPUT_
#pragma message("Automatically linking with " _TKSP_LIBNAME_)
#endif	// _TKSP_HIDE_AUTOLINK_OUTPUT_
#endif // _TKSP_DISABLE_AUTOLINK_

//----------------------------
// ToolkitsPro controls:
//----------------------------

//-------------------------
// Global Utils:
//-------------------------

#endif // __TKSPROINC_H
